Skip to content

DC-3698: capture multipart/form-data bodies by default as base64 - #439

Open
akshatt-attri wants to merge 1 commit into
hypertrace:mainfrom
akshatt-attri:DC-3698
Open

akshatt-attri wants to merge 1 commit into
hypertrace:mainfrom
akshatt-attri:DC-3698

Conversation

@akshatt-attri

Copy link
Copy Markdown

No description provided.

Add multipart/form-data to the default allowed content types. Multipart
request bodies carry binary file parts, so they are captured as unpadded
base64 of the raw bytes in http.request.body.base64 instead of decoded text.

Covers servlet 3.0/5.0, Netty 4.0/4.1 (server and client request), OkHttp,
Apache HttpClient and Undertow. Blocking evaluation is unchanged. OkHttp
multipart capture writes into a bounded buffer so large uploads are not
held in memory.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tim-mwangi
tim-mwangi requested a review from thugrock7 November 23, 2026 21:57

private final int maxCapacity;
private final Charset charset;
private volatile boolean multipartFormData;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class can be accessed by multiple threads?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants